import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import ElementPlus from 'element-plus'
// import 'element-plus/theme-chalk/index.css'
// import 'element-plus/theme-chalk/base.css'

import { registerApp } from './global'
//import './service/axios_demo' // 项目启动则执行测试代码
import 'normalize.css' // 通过 npm install --save normalize.css 安装后需要在本文件引用生效
import './assets/css/index.less'
import { setupStore } from '@/store'

const app = createApp(App)
registerApp(app)
app.use(store)

// 用户手动刷新页面则系统从 localStorage 重新读取数据到 vuex 中
setupStore()
app.use(router)
// app.use(ElementPlus)
app.mount('#app')
